//
//  WTChatManagerProtocol.h
//  WTLiveSDKDemo
//
//  Created by ben on 16/9/27.
//  Copyright © 2016年 ben. All rights reserved.
//

#import <Foundation/Foundation.h>

@class WTBaseMessageModel;

/**
 接收到私信消息 处理完之后给UI的回调
 
 @param messageModels 处理之后的消息model
 */
typedef void(^WTChatMessagesReceivedCallBackBlock)(NSArray<WTBaseMessageModel*>* messageModels);


@protocol WTChatManager <NSObject>


/**
 发送私信消息
 
 @param messageBody   消息文本
 @param sessionID 发送对象的id
 @return 消息体
 */
- (NIMMessage*)sendChatMessage:(NSString*)messageBody sessionID:(NSString*)sessionID;


/**
 处理完消息之后 给UI层次的block回调

 @param block 处理完消息之后的回调
 */
- (void)addChatMessagesReceivedCallBackBlock:(WTChatMessagesReceivedCallBackBlock)block;


/**
 移除消息相关的监听
 */
- (void)removeChatMessageLisenter;
@end
